package com.sample.navigation.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.sample.navigation.MainActivity;
import com.sample.navigation.R;
import androidx.fragment.app.Fragment;

public class Fragment3 extends Fragment {
    private View rootView;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        rootView = inflater.inflate(R.layout.fragment_3, null);
        initComponents();
        return rootView;
    }

    private void initComponents(){

    }

    public void switchToNext(){
        ((MainActivity)getActivity()).switchToNext(3);
    }
}
